package cn.edu.scau.cmi.chenyipeng.simpleFactory;

public class MeatFactory {
	public static Meat makeMeat(String meat_Name) {
		Meat meat = null;
		if(meat_Name.compareTo("beef") == 0) {
			meat = new Beef();
		}
		else if(meat_Name.compareTo("chicken") == 0){
			meat = new Chicken();
		}
		else if(meat_Name.compareTo("pork") == 0) {
			meat = new Pork();
		}
		return meat;
	}
}
